package com.eastfair.venueservice.service;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.BuilderRepairReportDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;

/**
 * 搭建商报修申请 服务.
 *
 * @author dqq
 * @date 2022 /11/24
 */
public interface VenueManageBuilderRepairReportService {

    /**
     * 更新搭建商报修申请为已完成.
     *
     * @param builderRepairReportDTO the repair report dto
     * @return the r
     */
    boolean completeRepairReport(BuilderRepairReportDTO builderRepairReportDTO);

    /**
     * 更新搭建商报修申请是否预定了服务.
     *
     * @param builderRepairReportDTO the builder repair report dto
     * @return the r
     */
    boolean updateIsBookService(BuilderRepairReportDTO builderRepairReportDTO);

    /**
     * 更新搭建商报修申请是否预定了服务.
     *
     * @param repairReportNumber the repair report number
     * @param isBookService      the is service book 0否1是
     * @return the boolean
     */
    boolean updateIsBookService(String repairReportNumber, Integer isBookService);

    /**
     * 更新搭建商报修申请需赔付场馆金额.
     *
     * @param builderRepairReportDTO the builder repair report dto
     * @return the r
     */
    boolean updateCompensateVenueAmount(BuilderRepairReportDTO builderRepairReportDTO);

    /**
     * 更新搭建商报修申请需赔付场馆金额.
     *
     * @param repairReportNumber    the repair report number
     * @param compensateVenueAmount the compensate venue amount
     * @return the boolean
     */
    boolean updateCompensateVenueAmount(String repairReportNumber, BigDecimal compensateVenueAmount);
}